<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>我的购买</title>
	<script src="/static/mobile/js/mui.min.js"></script>
	<link href="/static/mobile/css/mui.min.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="/static/mobile/css/basic.css"/>
	<link rel="stylesheet" type="text/css" href="/static/mobile/css/active_huiyuan.css"/>
	<link rel="stylesheet" type="text/css" href="/static/mobile/css/resiter_daili_3.css"/>
	<script type="text/javascript" src="/static/mobile/js/jquery.js"></script>
	<link rel="stylesheet" href="/static/plugins/layui/css/layui.css">
	<script type="text/javascript" charset="utf-8">
		mui.init();
	</script>
	<style>
		.section2 .sub button {
			width: 100%;
			padding: 5px;
			font-size: 1rem;
			color: #fff;
			background: #E52D2D;
			border-color: #E52D2D;
		}
	</style>
</head>
<body>
<div class="sectionx">
	<header class="mui-bar mui-bar-nav" >
		<a class="mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.back(-1)" style="color: #4E4E4E;"></a>
		<h1 class="mui-title">我的购买</h1>
	</header>
</div>
<div class="section3">
</div>
<div class="ge"></div>

<div class="">
	<div class="layui-form">
		<div class="section2">
			{volist name='lists' id='vo'}
			<ul>
				<li class="lix mui-clearfix">
					<span>会员编号</span>
					<input type="text" value='{$vo.unickname}' readonly/>
					<span class="xing">*</span>
				</li>

				<li class="lix mui-clearfix">
					<span>会员姓名</span>
					<input type="text" value='{$vo.uid|getuser_username}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>手机号</span>
					<input type="text" value='{$vo.uid|getuser_mobile}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>开户银行</span>
					<input type="text" value='{$vo.uid|getuser_bank_name}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>银行卡号</span>
					<input type="text" value='{$vo.uid|getuser_card}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>开户地址</span>
					<input type="text" value='{$vo.uid|getuser_bank_dizhi}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>数量</span>
					<input type="text" value='{$vo.id|getguamai}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>单价</span>
					<input type="text" value='{$vo.price}' readonly/>
					<span class="xing">*</span>
				</li>
				<li class="lix mui-clearfix">
					<span>状态</span>
					<input type="text" value='{$vo.is_ok|get_ok}' readonly/>
					<span class="xing">*</span>
				</li>
				{if $vo.is_ok==1}
				<li class="lix mui-clearfix" style="text-align: center">
					<button  class="layui-btn" onclick="return commints('{$vo.id}');"  style="color: #fff;background: red;border-color: red;" >确认打款</button>
				</li>
				{/if}
				<!--				<li class="lix mui-clearfix">
                                    <span>会员编号</span>
                                    <li style='width:14.2%' >{$vo.id}</li>
                                </li>

                                <li class="lix mui-clearfix">
                                    <span>会员姓名</span>
                                    <li style='width:14.2%'> {$vo.uid|getuser_username}</li>
                                </li>
                                <li class="lix mui-clearfix">
                                    <span>手机号</span>
                                <li style='width:14.2%'>{$vo.uid|getuser_mobile}</li>
                                </li>
                                <li class="lix mui-clearfix">
                                    <span>银行卡号</span>

                                <li style='width:14.2%'>{$vo.uid|getuser_card}</li>
                                </li>
                                <li class="lix mui-clearfix">
                                    <span>数量</span>
                                <li style='width:14.2%'>{$vo.id|getguamai}</li>
                                </li>
                                <li class="lix mui-clearfix">
                                    <span>单价</span>
                                <li style='width:14.2%'>{$vo.price}</li>
                                </li>
                                <li class="lix mui-clearfix">
                                    <span>状态</span>

                                <li style='width:14.2%'>{$vo.is_ok|get_ok}</li>
                                </li>-->
			</ul>
			<div class="ge"></div>
			{/volist}
		</div>
	</div>
	<!--		<div class="section4-2 mui-clearfix">
                {volist name='lists' id='vo'}
                <ul >
                    <li style='width:14.2%' >{$vo.id}</li>
                    <li style='width:14.2%'> {$vo.uid|getuser_username}</li>
                    <li style='width:14.2%'>{$vo.uid|getuser_mobile}</li>
                    <li style='width:14.2%'>{$vo.uid|getuser_card}</li>
                    <li style='width:14.2%'>{$vo.id|getguamai}</li>
                    <li style='width:14.2%'>{$vo.price}</li>
                    <li style='width:14.2%'>{$vo.is_ok|get_ok}</li>
                </ul>
                {/volist}

            </div>-->
</div>
</div>

{$page|raw}

</body>
<script src="/static/plugins/layui/layui.js"></script>
<script type="text/javascript" >
	mui('body').on( 'tap' , 'a' , function(){
		document.location.href=this.href;
	})
</script>
<script>
	function commints(id){
		$.ajax({
			type : "POST",  //请求方式
			async:false,
			url : "{:url('guamai_my_pay')}",  //请求路径
			dataType:"html",
			data :'id='+id,
			success : function(msg) {  //异步请求成功执行的回调函数
				var jsonParseJson=JSON.parse(msg);
				if(jsonParseJson['success']==1){
					layer.msg(jsonParseJson['msg'],{time:1000,icon:1},function(){
						window.location.href = "{:url('guamai_buy')}";
					});
				}else{
					layer.msg(jsonParseJson['msg'],{time:1000,icon:2});
				}

			}
		});
	}
	layui.use(['form', 'layer'], function () {

	})
</script>
</html>